﻿using System.Windows.Forms;
using System.Windows.Forms.Design;
using System.Drawing;
using System.ComponentModel;

namespace StockControl
{
    [ToolboxBitmap(typeof(PictureBox))]
    [ToolStripItemDesignerAvailability(ToolStripItemDesignerAvailability.All)]
    public class PictureBoxToolStrip : ToolStripControlHost
    {
        public PictureBoxToolStrip()
            : base(new PictureBox())
        {
        }

        [DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
        public new PictureBox Control
        {
            get
            {
                return base.Control as PictureBox;
            }
        }
    }

    /*
    [ToolboxBitmap(typeof(MenuStrip))]
    [ToolStripItemDesignerAvailability(ToolStripItemDesignerAvailability.All)]
    public class MenuToolStrip : ToolStripControlHost
    {
        public MenuToolStrip()
            : base(new MenuStrip())
        {
        }

        public new MenuStrip Control
        {
            get
            {
                return base.Control as MenuStrip;
            }
        }
    }

    [ToolboxBitmap(typeof(StatusStrip))]
    [ToolStripItemDesignerAvailability(ToolStripItemDesignerAvailability.All)]
    public class StatusToolStrip : ToolStripControlHost
    {
        public StatusToolStrip()
            : base(new StatusStrip())
        {
        }

        public new StatusStrip Control
        {
            get
            {
                return base.Control as StatusStrip;
            }
        }
    }


    [ToolboxBitmap(typeof(MonthCalendar))]
    [ToolStripItemDesignerAvailability(ToolStripItemDesignerAvailability.All)]
    public class MonthCalendarToolStrip : ToolStripControlHost
    {
        public MonthCalendarToolStrip()
            : base(new MonthCalendar())
        {
        }

        public new MonthCalendar Control
        {
            get
            {
                return base.Control as MonthCalendar;
            }
        }
    }*/
}
